<?php
declare (strict_types = 1);

namespace app\controller;

use think\Request;

class Download
{
    public function down(){
        $type = request()->param('type',1);

        if($type ==1){
            $name = 'plugin_3.6.4.zip';
        }else{
            $name = 'plugin_3.6.4.crx';
        }
        return download($name, $name);
    }
}
